﻿using System.Data;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace HRMService
{
    [ServiceContract(Namespace = "http://HRMService")]
    public interface IMaritalStatus
    {
        [OperationContract]
        int MaritalStatus_Using(int MaritalStatusID);

        [OperationContract]
        DataSet MaritalStatus_GetAll();

        [OperationContract]
        MaritalStatusInfo MaritalStatus_GetInfo(int MaritalID);

        [OperationContract]
        DataSet MaritalStatus_GetList(out int ItemCount, int currentPage, int pageSize);

        [OperationContract]
        int MaritalStatus_Insert(MaritalStatusInfo eInfo);

        [OperationContract]
        bool MaritalStatus_Update(MaritalStatusInfo eInfo);

        [OperationContract]
        bool MaritalStatus_Delete(int MaritalID);
    }
    [DataContract(Namespace = "http://HRMService")]
    public class MaritalStatusInfo
    {       
        int _ID;
        [DataMember]
        public int ID
        {
            get { return _ID; }
            set {_ID = value; }
        }

        string _Name;
        [DataMember]
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
    }

}
